﻿using MediatR;
using S.Common.ApiResult;
using S.Transplantation.Domain.Models;
using S.Transplantation.Read.Api.Dto;
using System.ComponentModel.DataAnnotations;

namespace S.Transplantation.Read.Api.Application.Command
{
    public class GetTransplantationListCommand : IRequest<ApiResult<List<GetTransplantationListDto>>>
    {
        public int PageIndex { get; set; }

        public int PageSize { get; set; }

        public string? BeginTime { get; set; }

        public string? EndTime { get; set; }

        public string? EarTag { get; set; }
    }

    public class UpdateTransplantationListCommand : IRequest<int>
    {
        public List<GetTransplantationListDto> UpdatetransplantationListDtos { get; set; }
    }

    public class DeleteTransplantationListCommand : IRequest<int>
    {
        public string Ids { get; set; }
    }

    public class AddTransplantationListCommand : IRequest<int>
    {
        public List<GetTransplantationListDto> AddtransplantationListDtos { get; set; }
    }
    public class BackfillTransplantationCommand : IRequest<DescendantTransferModel>
    {
        /// <summary>
        /// 转种主键Id
        /// </summary>
        public int Id { get; set; }
    }
}